package cn.beforedark.yygh.hosp.repository;

import cn.beforedark.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    Department findByHoscodeAndDepcode(String hoscode, String depcode);

    List<Department> findByHoscode(String hoscode);
}
